.edit-image-wrap {
    display: inline-block;
    .edit-image-btn {
        cursor: pointer;
        .edit-image {
            display: flex;
            align-items: center;
            
            .edit-image-label {
                color: var(--edit-text-color-regular);
                padding-right: 8px;
            }
            .edit-image-content {
                position: relative;
                display: inline-flex;
                align-items: center;
                .el-image {
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    vertical-align: top;
                    width: 32px;
                    height: 32px;
                    background-color: var(--edit-bg-color);
                    border: 1px solid var(--edit-border-color);
                    border-radius: 4px;
                    box-sizing: border-box;
                    .el-image__wrapper {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                    }
                }
            }
        }
    }
}

.edit-image-dialog {
    height: 500px;
    .el-dialog__header {
        padding: 0;
        .el-dialog__headerbtn {
            z-index: 9;
        }
    }
    .el-dialog__body {
        padding: 0;
        height: 100%;
    }
    .edit-image-tabs {
        height: 100%;
        .el-tabs__header {
            margin-bottom: 0;
            .el-tabs__nav {
                padding: 0 10px;
                .el-tabs__item {
                    height: 60px;
                    line-height: 60px;
                }
            }
        }
        .el-tabs__content {
            height: calc(100% - 60px);
            .el-tab-pane {
                height: 100%;
            }
        }
        .edit-image-tab-pane {
            display: flex;
            height: 100%;
            .pane-left {
                width: 160px;
                height: 100%;
                border-right: 1px solid var(--edit-border-color-light);
                display: flex;
                flex-direction: column;
                flex-wrap: nowrap;
                .add-btn {
                    display: flex;
                    align-items: center;
                    height: 50px;
                    padding: 0 20px;
                    border-bottom: 1px solid var(--edit-border-color-light);
                    box-sizing: border-box;
                    cursor: pointer;
                    &:hover {
                        color: var(--edit-color-primary);
                    }
                    .el-icon {
                        margin-right: 8px;
                    }
                }
                .image-category-item {
                    padding: 0 10px 0 20px;
                    &:hover {
                        .image-category-item-action {
                            display: block;
                        }
                    }
                    .image-category-item-title {
                        flex: 1;
                    }
                    .image-category-item-action {
                        display: none;
                        .el-icon {
                            width: auto;
                            margin: 0;
                            color: var(--edit-text-color-regular);
                            font-size: 16px;
                            & + .el-icon {
                                margin-left: 8px;
                            }
                            &:hover {
                                color: var(--edit-color-primary);
                            }
                        }
                    }
                }
                .el-menu {
                    border: none;
                    .el-menu-item {
                        &.is-active {
                            position: relative;
                            background-color: var(--edit-color-primary-light-9);
                            &:after {
                                content: '';
                                position: absolute;
                                top: 0;
                                bottom: 0;
                                right: 0;
                                border-right: 2px solid var(--edit-color-primary);
                            }
                        }
                    }
                }
                .el-divider {
                    width: calc(100% - 10px);
                    margin: 24px auto;
                    .el-divider__text {
                        width: max-content;
                    }
                }
            }
            .pane-content {
                flex: 1;
                height: 100%;
                background-color: var(--edit-bg-color);
                display: flex;
                flex-direction: column;
                flex-wrap: nowrap;
                .pane-content-header {
                    display: flex;
                    align-items: center;
                    height: 50px;
                    padding: 0 38px 0 30px;
                    background-color: var(--edit-bg-color);
                    border-bottom: 1px solid var(--edit-border-color-light);
                    box-sizing: border-box;
                    .edit-btn {
                        display: flex;
                        align-items: center;
                        box-sizing: border-box;
                        cursor: pointer;
                        &:hover {
                            color: var(--edit-color-primary);
                        }
                        .el-icon {
                            font-size: 18px;
                            margin-right: 5px;
                        }
                    }
                    .header-edit {
                        display: flex;
                        justify-content: space-between;
                        width: 100%;
                        .header-edit-left {
                            // 
                        }
                        .header-edit-right {
                            display: flex;
                            align-items: center;
                            .delete-btn {
                                display: flex;
                                align-items: center;
                                color: var(--edit-color-danger);
                                margin-left: 20px;
                                cursor: pointer;
                                .el-icon {
                                    margin-right: 5px;
                                }
                            }
                            .save-btn {
                                color: var(--edit-color-primary);
                                margin-left: 20px;
                                cursor: pointer;
                            }
                        }
                    }
                }
                .el-scrollbar {
                    padding: 0 10px 0 30px;
                    .pane-content-list {
                        display: flex;
                        flex-direction: row;
                        flex-wrap: wrap;
                        -moz-user-select: none;
                        -webkit-user-select: none;
                        -ms-user-select: none;
                        -khtml-user-select: none;
                        user-select: none;
                        .upload-btn {
                            position: relative;
                            width: 96px;
                            height: 96px;
                            margin: 17px 15px 0 2px;
                            box-sizing: border-box;
                            display: inline-flex;
                            align-items: center;
                            justify-content: center;
                            font-size: 28px;
                            border: 1px dashed var(--edit-border-color-dark);
                            background-color: var(--edit-bg-color);
                            overflow: hidden;
                            cursor: pointer;
                            .upload-btn-input {
                                position: absolute;
                                top: 0;
                                left: 0;
                                width: 100%;
                                height: 100%;
                                opacity: 0;
                                cursor: pointer;
                            }
                        }
                        .image-item {
                            display: inline-flex;
                            width: 100px;
                            height: 100px;
                            margin: 15px 15px 0 0;
                            border: 2px solid transparent;
                            box-sizing: border-box;
                            position: relative;
                            cursor: pointer;
                            &.active {
                                border-color: var(--edit-color-primary);
                                padding: 1px;
                            }
                            &.edit {
                                &:hover {
                                    .image-item-actions {
                                        visibility: hidden;
                                    }
                                }
                            }
                            &:hover {
                                .image-item-actions {
                                    visibility: visible;
                                }
                            }
                            .el-image {
                                display: flex;
                                align-items: center;
                                justify-content: center;
                                width: 100%;
                                height: 100%;
                                border: 1px solid var(--edit-border-color-light);
                                box-sizing: border-box;
                            }
                            .image-item-actions {
                                visibility: hidden;
                                position: absolute;
                                width: calc(100% - 2px);
                                height: 24px;
                                left: 1px;
                                bottom: 0;
                                text-align: center;
                                color: var(--edit-color-white);
                                font-size: 18px;
                                background-color: rgba(0, 0, 0, 0.5);
                                display: flex;
                                align-items: center;
                                justify-content: center;
                                box-sizing: border-box;
                                z-index: 1;
                                cursor: pointer;
                                &:hover {
                                    background-color: rgba(0, 0, 0, 0.7);
                                }
                                .el-icon {
                                    margin: 0 5px;
                                }
                            }
                            .image-item-checkbox {
                                position: absolute;
                                top: 5px;
                                left: 5px;
                                height: auto;
                            }
                        }
                    }
                }
            }
        }
    }
}